package cz.gelion.shylock.accounting

import scala.collection.mutable.HashSet
import java.io.InputStream
import org.squeryl.KeyedEntity
import org.squeryl.customtypes.StringField
import org.squeryl.customtypes.LongField

class LedgerEvent (val id:LongField, var subj:Subject, var title:StringField, var descr:StringField) extends KeyedEntity[LongField] {

  def this(subj:Subject,title:StringField) = this(null,subj,title,null)

  lazy val items = Datastore.eventToItem.left(this) 
  
  lazy val archives = Datastore.archiveToEvent.right(this)
  
  
}